/**
 * 商店列表
 * @param {*} body
 * @returns
 */
export const useLoadShopList = (body) => {
    return useHttpPost("/shops/getShopsList",{body})
}


/**
 * 商店列表用于添加商品
 * @param {*} body
 * @returns
 */
export const useLoadShopLists = () => {
    return useHttpPost("/shops/list",{})
}




/**
 * 根据ID获取商品列表
 * @param {*} id
 * @returns
 */
export const useGetShopsById = (id) => {
    return useHttpPost("/shops/get/"+id,{})
}


/**
 * 新增商品
 * @param {*} body
 * @returns
 */
export const useSaveShops = (body) => {
    return useHttpPost("/shops/add",{body})
}


/**
 * 修改商品
 * @param {*} body
 * @returns
 */
export const useUpdateShops = (body) => {
    return useHttpPost("/shops/update",{body})
}


/**
 * 删除商品
 * @param {*} id
 * @returns
 */
export const useDeleteShops = (id) => {
    return useHttpPost("/shops/delete/"+id,{})
}


/**
 * 修改状态
 * @param {*} id
 * @returns
 */
export const useUpdateStatusShops = (body) => {
    body.field  = C2B( body.field )
    return useHttpPost("/shops/update/status",{body})
}

